﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyDefault.aspx.cs" Inherits="admin_MainPage_MyDefault" %>

<%@ Register Src="../Controls/TopControl.ascx" TagName="TopControl" TagPrefix="uc2" %>
<%@ Register Src="../Controls/MyLeftControl.ascx" TagName="MyLeftControl" TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>网站后台管理系统</title>
    <link type="text/css" rel="stylesheet" href="../css/main.css" />
    <link type="text/css" rel="stylesheet" href="../css/left.css" />

    <script src="../js/jquery.js" type="text/javascript" language="javascript"></script>

    <script src="../js/jquery.cookie.js" type="text/javascript" language="javascript"></script>

    <script src="../js/topsz.js" type="text/javascript" language="javascript"></script>

    <script language="javascript" type="text/javascript">
    $(document).ready(function() {
        
	    // 点击触发
	    $("#sfqclick dt").click(function(){
		    $(this).next().slideToggle(300)
			       .siblings("dd").slideUp("slow");
    		
		    var index = $("#sfqclick dt").index(this);
		    $.cookie('the_cookie', index ); // 设置cookie
	    });
    	
    	// 获取cookie
	    var cookievalue= $.cookie('the_cookie');
	    if( cookievalue){
		    $("#sfqclick dt").eq(cookievalue).click();
	    }
	      });
	      
	      function SetCwinHeight(){
  var iframeid=document.getElementById("Frame1"); //iframe id
  if (document.getElementById){
   if (iframeid && !window.opera){
    if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){
     iframeid.height = iframeid.contentDocument.body.offsetHeight;
    }else if(iframeid.Document && iframeid.Document.body.scrollHeight){
     iframeid.height = iframeid.Document.body.scrollHeight;
    }
   }
  }
 }
    </script>

</head>
<body>
    <form id="form2" runat="server">
        <uc2:TopControl ID="TopControl1" runat="server" />
        <div class="topan">
            <input id="tabclass1" onclick="showClassList();return false;" type="image" src="../images/topan.gif"
                width="52" height="9" /></div>
        <div class="center">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top">
                        <div id="sfqclick" style="width: 200px;">
                            <uc1:MyLeftControl ID="MyLeftControl" runat="server"></uc1:MyLeftControl>
                        </div>
                    </td>
                    <td width="13" valign="top" style="height: 360px">
                        <input type="image" onclick='showhidediv("sfqclick");return false;' style="margin-top: 150px;
                            margin-left: 2px; padding-right: 2px;" src="../images/leftan.gif" width="9" height="52" />
                    </td>
                    <td width="100%" valign="top">
                        <iframe id="Frame1" name="Frame1" width="90%" height="auto;" src="welcome.aspx" allowtransparency="true"
                            onload="Javascript:SetCwinHeight()" frameborder="0" scrolling="no"></iframe>
                    </td>
                </tr>
            </table>
        </div>
<%-- <div id="bottomNav">
            &copy;Copyright 2010 <a href="http://www.tfxk.com" target="_blank">成都天府星空网络科技有限公司</a>
            保留所有权利</div>--%>
    </form>
</body>
</html>
